import service from '@/api'
import service2 from '@/api/baidu'

export function getImageList(params) {
  return service({
    url:'/baidu/getImageList',
    method:'POST',
    data:params,
  })
}

export function getVideoInfos(params) {
  return service({
    url:'/baidu/getVideoInfos',
    method:'POST',
    data:params,
  })
}

export function addCreativeFeed(params) {
  return service2({
    url:'/baidu/addCreativeFeed',
    method:'POST',
    data:params,
  })
}

export function addCropImage(params) {
  return service2({
    url:'/baidu/addCropImage',
    method:'POST',
    data:params,
  })
}

export function getVideoExtractImage(params) {
  return service({
    url:'/baidu/getVideoExtractImage',
    method:'POST',
    data:params,
  })
}

export function uploadImage(params) {
  return service({
    url:'/baidu/uploadImage',
    method:'POST',
    data:params,
  })
}

export function batchCampaign(params) {
  return service({
    url:'/baidu/batchCampaign',
    method:'POST',
    data:params,
  })
}

export function batchUpload(params) {
  return service({
    url:'/baidu/batchUpload',
    method:'POST',
    data:params,
  })
}

export function copyToSelf(params) {
  return service({
    url:'/baidu/copyToSelf',
    method:'POST',
    data:params,
  })
}

export function copyCreativeToSelf(params) {
  return service({
    url:'/baidu/copyCreativeToSelf',
    method:'POST',
    data:params,
  })
}


export function updateCampaignFeed(params) {
  return service({
    url:'/baidu/updateCampaignFeed',
    method:'POST',
    data:params,
  })
}

export function deleteCreativeFeed(params) {
  return service({
    url:'/baidu/deleteCreativeFeed',
    method:'POST',
    data:params,
  })
}

export function getJmyPromotionPage(params) {
  return service({
    url:'/baidu/getJmyPromotionPage',
    method:'POST',
    data:params,
  })
}

export function getTplAdgroupFeed(params) {
  return service({
    url:'/baidu/getTplAdgroupFeed',
    method:'POST',
    data:params,
  })
}

export function createFromTpl(params) {
  return service({
    url:'/baidu/createFromTpl',
    method:'POST',
    data:params,
  })
}

export function asyncCreateFromTpl(params) {
  return service({
    url:'/baidu/asyncCreateFromTpl',
    method:'POST',
    data:params,
  })
}

export function getBroadCastPages(params) {
  return service({
    url:'/baidu/getBroadCastPages',
    method:'POST',
    data:params,
  })
}

export function asyncAddCreativeFeed(params){
  return service2({
    url:'/baidu/asyncAddCreativeFeed',
    method:'POST',
    data:params,
  })
}